<template>
  <v-app>
    <v-progress-linear
        color="blue darken-1"
        :active="loaderStatus"
        :indeterminate="loaderStatus"
        absolute
    ></v-progress-linear>
    <router-view></router-view>
  </v-app>
</template>

<script>
export default {
  name: "App",
  data() {
    return {

    };
  },
  computed: {
    loaderStatus() {
      return this.$store.state.mainLoader;
    }
  },
  methods: {
    changeLoader: function () {
      this.$store.commit("mainLoaderChange", !this.$store.state.mainLoader)
    }
  },
  mounted() {
    if (typeof window !== undefined && window._VMA === undefined) {
      window._VMA = this;
    }
  }
};
</script>

<style>
</style>
